<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
 
<link rel="stylesheet" type="text/css" href="${resources}/css/consumeRecord.css" />	 
 <nav class="navbar navbar-default navbar-static-top navbar-shortcut">
    <div class="container">
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right navbar-nav-jd">
             <c:if test="${shiroMember!=null}">
                    <li>
	                    <a href="${path}/manage/myCenter/myOrder" class="link-user">您好,${shiroMember.member.username}</a>
	                </li>
	                <li>
	                    <a href="${path}/logout" class="link-logout">退出</a>
	                </li>
	                <li>
	                    <a href="${path}/manage/myCenter/myOrder">我的订单</a>
	                </li>
             </c:if>
              <c:if test="${shiroMember==null}">
	                 
	                <li>
	                    <a href="${path}/login" class="link-logout">登陆</a>
	                </li>
	                 
              </c:if>
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</nav>

<!--- 导航： begin -->
<div id="nav">
    <div class="w container">
        <!-- logo begin -->
        <div class="logo">
            <a href="${path}"  class="fore1"></a>
        </div>
        <!-- logo end -->

        <div class="pull-right">
            <form class="navbar-form navbar-left navbar-form-jd" role="search" action="${path }manage /goods/search">

                <div class="form-group">
                    <input type="text" id="hotsearch" class="form-control" name="search_CN_title" placeholder="水果">
                </div>
                <button type="button" onclick="search()" class="btn btn-default">搜索</button>
            </form>

        </div>
    </div>
</div>
<script type="text/javascript">
function search(){
		var hot = $("#hotsearch").val();
		window.location.href="${path}/commodity/goodslist?name="+hot;
	}
</script>
<!--- 导航： end -->